import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import partyReport from '@/page/partyReport'
import reportList from '@/page/partyReport/list'
import reportForm from '@/page/partyReport/form'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    // 党员报道
    {
      path: '/partyReport',
      component: partyReport,
      redirect: '/partyReport/list',
      children:[
        {path: 'list',component: reportList},
        {path: 'form',component: reportForm}
      ]
    }
  ]
})
